package com.rn.ddd.infrastructure.repository.converter;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.rn.ddd.domain.merchant.entity.Store;
import com.rn.ddd.infrastructure.base.BaseDataConverter;
import com.rn.ddd.infrastructure.repository.po.StorePO;
import lombok.extern.slf4j.Slf4j;

/**
 * 商数据转换器
 *
 * @author 然诺
 * @date 2021/8/15
 */
@Slf4j
public class StoreDataConverter extends BaseDataConverter {

    private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();

    public static StorePO toData(Store store) {
        return convert(store, StorePO.class);
    }

}
